<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<meta http-equiv="pragma" content="no-cache">
<#include "/_view/common/jquery.ftl"/>
</head>
<body>


	 

	<table>
	<#list lines as data>
	<tr>
	<td>线路:${data.title!}</td>
	<td><a href="callCar?line_id=${data.id}&${_now}">叫车</a></td>
	</tr>
	<tr>  
	<td colspan=2>
	从 ${data.begin_place_data.title} 的 ${data.begin_place_data.address!} 
	直达 ${data.end_place_data.title} 的  ${data.end_place_data.address!}</td>
	</tr>
	</#list>
	</table>
 
	<hr>
	<p>
		已经下单:<a href="/user/logout?${_now}">安全退出</a>
	</p>
		
		
<!-- 		<p> -->
<!-- 		${orders} -->
<!-- 	</p> -->
	
	<table>
	
	<tr>
	 <th>线路</th>
<!-- 	 <th>联系电话</th> -->
	 <th style="width: 85px;">下单时间</th>
	 <th>状态</th>
	</tr>
	
	
	<#list orders as data>
	<tr>
<!-- 	 <td>${data.id}</td> -->
	 <td>${data.line_info.title!} </br>
	 ${data.begin_place_data.title!}-${data.end_place_data.title!}</td>
<!-- 	 <td>${data.order_phone!}</td> -->
	 <td>${data.create_time}</td>
	 <td>${data.translateStatus()}</br>
	 
	 
	 <#if data.canCancel==true>
	 <a    href=" javascript:void(0)" onclick="cancelOrder(${data.id});">取消行程</a> 
	 </#if>
	 </td> 
	</tr>
		</#list>
	</table>
	



</body>

<script type="text/javascript">

function cancelOrder(id){
	if(confirm('确定取消?')){
		postDataParameter("cancelOrder",{id:id},"lineList",true);
	}
}
	</script>
</html>